﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AOrganizationServiceFrame.ascx.cs"
    Inherits="AB.ServiceDirectory.Design.WebUserControls.Frame.AOrganizationServiceFrame" %>
&nbsp;<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Panel ID="CurrentListSupportingMaterials" ClientIDMode="Static" runat="server">
            <asp:GridView ID="GridViewOrganizationService" CssClass="tablesorter" runat="server"
                EmptyDataText="No data available" AutoGenerateColumns="False" AllowPaging="True"
                PageSize="15" AllowSorting="True" 
                DataSourceID="ObjectDataSourceOrganizationService" Width="380px">
                <Columns>
                <asp:TemplateField HeaderText="Organization Name">
                <ItemTemplate>
                <%#Eval("Organization.OrganizationName") %>
                </ItemTemplate>
                </asp:TemplateField>
                   
                    <asp:BoundField DataField="Description" HeaderText="Description">
                    </asp:BoundField>
                    <asp:BoundField DataField="Roles" HeaderText="Roles">
                    </asp:BoundField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperlinkEditRole" runat="server" Text="edit role" NavigateUrl="#" />
                        </ItemTemplate>
                        <ItemStyle Width="70px" />
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <blockquote>
                        There are no items to show.</blockquote>
                </EmptyDataTemplate>
                <PagerStyle CssClass="pagination_table" />
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSourceOrganizationService" runat="server" EnablePaging="True"
                MaximumRowsParameterName="maxRows"
                TypeName="AB.ServiceDirectory.BO.AOrganisationServiceBo"
                StartRowIndexParameterName="startRowIndex" 
                SelectMethod="PagingServiceOrganisationService"
                SelectCountMethod="GetServiceOrganisationCount" 
                onselecting="ObjectDataSourceOrganizationService_Selecting">
               
                <SelectParameters>
                <asp:Parameter Name="filter" Type="Object" ConvertEmptyStringToNull="false" />
                </SelectParameters>
               
            </asp:ObjectDataSource>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
